package com.wu.Backstage.service;

import com.wu.Backstage.entity.Po.ShoppingCartPo;
import com.wu.Backstage.entity.Po.evaluated;
import com.wu.Backstage.entity.evaluatedEntity;
import com.wu.Backstage.entity.orderDateEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author wujian
 * @version 1.0
 * @date 2022/3/30 0030 4:24
 */
@Service
public class EvaluatedService {

    @Resource
    private com.wu.Backstage.entity.evaluatedEntity evaluatedEntity;

    /**商品添加**/
    public evaluated Addevaluated(evaluated eva)
    {
        evaluated evaluated =evaluatedEntity.save(eva);
        return evaluated;
    }

    /**根据id删除商品**/
    public void  deleteOrderDetails(Integer id)
    {
        evaluatedEntity.deleteById(id);
    }




}
